<?php
/**
 * Description
 * User: duanwenjie
 * Date: 2019/5/9
 * Time: 11:30 AM
 */

namespace app\index\controller;

use app\common\ConfigBase;
use app\common\model\ToolModel;
use app\common\YujisoController;
use app\index\service\ShipplanfollowService;
use think\Exception;

class Shipplanfollow extends YujisoController
{
    public $param;
    public function __construct()
    {
        parent::__construct();
        $temp = $this->request->param();
        if (isset($temp['s'])) unset($temp['s']);
        $this->param = $temp;
    }

    /**
     * 获取发运计划跟进表列表
     * @author duanwenjie
     */
    public function getList()
    {
        $param = $this->param;
        $result = ShipplanfollowService::getList($param);
        returnJson('1','查询成功',$result['list'],$result['total']);
    }


    /**
     * 导出数据
     * @author duanwenjie
     */
    public function export()
    {
        $param = $this->param;
        $res = ShipplanfollowService::export($param);
        exitJson($res);
    }
}